package com.car.service.Impl;

import com.car.entity.Cartypetable;
import com.car.mapper.CartypetableMapper;
import com.car.service.CartypetableService;
import com.car.vo.CartypetableVo;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CartypetableServiceImpl implements CartypetableService{

	@Autowired
	CartypetableMapper mapper;
	
	@Override
	public int deleteByPrimaryKey(String carType) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insert(Cartypetable record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Cartypetable selectByPrimaryKey(String carType) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Cartypetable> selectAll() {
		// TODO Auto-generated method stub
		return mapper.selectAll();
	}

	@Override
	public int updateByPrimaryKey(Cartypetable record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<CartypetableVo> Brandinfo(int i,double minprice,double maxprice,String carType,String brand) {
		// TODO Auto-generated method stub
		return mapper.Brandinfo(i,minprice,maxprice,carType,brand);
	}

	@Override
	public Cartypetable selectTheRent(int carId) {
		// TODO Auto-generated method stub
		return mapper.selectTheRent(carId);
	}

	@Override
	public List<Cartypetable> selectRentAll() {
		// TODO Auto-generated method stub
		return mapper.selectRentAll();
	}

	@Override
	public Cartypetable selectRentId(int cartypeId) {
		// TODO Auto-generated method stub
		return mapper.selectRentId(cartypeId);
	}

	@Override
	public int updataRent(Cartypetable cartypetable) {
		// TODO Auto-generated method stub
		return mapper.updataRent(cartypetable);
	}
}